package com.neusoft.elmboot.po;

public class WalletExc {	
	private Integer excId;
    private double excMoney;
	private Integer excType;
    private String excTime;
	private String excInUserId;
	private String excOutUserId;
	
	public void gnrtExc(Wallet wallet,Integer type) {
		excMoney = wallet.getBalance();
		excType = type;
		if(type == 1)
			excInUserId = wallet.getUserId();
		else if(type == 2)
			excOutUserId = wallet.getUserId();
	}	
	public Integer getExcId() {
		return excId;
	}
	public String getExcTime() {
		return excTime;
	}
	public double getExcMoney() {
		return excMoney;
	}
	public Integer getExcType() {
		return excType;
	}
	public String getExcInUserId() {
		return excInUserId;
	}
	public String getExcOutUserId() {
		return excOutUserId;
	}
    
    public void setExcId(Integer excId) {
		this.excId = excId;
	}
    public void setExcTime(String excTime) {
		this.excTime = excTime;
	}
    public void setExcMoney(double excMoney) {
		this.excMoney = excMoney;
	}
    public void setExcType(Integer excType) {
		this.excType = excType;
	}
    public void setExcInUserId(String excInUserId) {
		this.excInUserId = excInUserId;
	}
	public void setExcOutUserId(String excOutUserId) {
		this.excOutUserId = excOutUserId;
	}	
}